<?php
session_start();
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once 'database/notif_handler.php';

$notif = new notif_handler();
$jml = 0;

$notif->retr_notification($_SESSION['Username']);
if (count($notif->berita) > 0 && $notif->berita[0] != null) {
    for ($i = 0; $i < count($notif->berita); $i++) {
        if ($notif->read[$i] == 0) {
            $jml++;
        }
    }
    if ($jml > 0)
        echo "<font color='red'>(" . $jml . ")</font>";
}
else {
    echo "";
}
?>
